<div style="color:Black;background-color:White;"><pre>
<span style="color:Green;">// keywords_base.cs</span>
<span style="color:Green;">// Accessing base class members</span>
<span style="color:Blue;">using</span> System;
<span style="color:Blue;">public</span> <span style="color:Blue;">class</span> Person
{
    <span style="color:Blue;">protected</span> <span style="color:Blue;">string</span> ssn = <span style="color:#A31515;">&quot;444-55-6666&quot;</span>;
    <span style="color:Blue;">protected</span> <span style="color:Blue;">string</span> name = <span style="color:#A31515;">&quot;John L. Malgraine&quot;</span>;

    <span style="color:Blue;">public</span> <span style="color:Blue;">virtual</span> <span style="color:Blue;">void</span> GetInfo()
    {
        Console.WriteLine(<span style="color:#A31515;">&quot;Name: {0}&quot;</span>, name);
        Console.WriteLine(<span style="color:#A31515;">&quot;SSN: {0}&quot;</span>, ssn);
    }
}
<span style="color:Blue;">class</span> Employee : Person
{
    <span style="color:Blue;">public</span> <span style="color:Blue;">string</span> id = <span style="color:#A31515;">&quot;ABC567EFG&quot;</span>;

    <span style="color:Blue;">public</span> <span style="color:Blue;">override</span> <span style="color:Blue;">void</span> GetInfo()
    {
        <span style="color:Green;">// Calling the base class GetInfo method:</span>
        <span style="color:Blue;">base</span>.GetInfo();
        Console.WriteLine(<span style="color:#A31515;">&quot;Employee ID: {0}&quot;</span>, id);
    }
}

<span style="color:Blue;">class</span> TestClass
{
    <span style="color:Blue;">public</span> <span style="color:Blue;">static</span> <span style="color:Blue;">void</span> Main()
    {
        Employee E = <span style="color:Blue;">new</span> Employee();
        E.GetInfo();
    }
}
</pre></div>